package com.hyh.main;

import com.hyh.main.fly.FlyNoWay;
import com.hyh.main.fly.FlyWithWings;
import com.hyh.main.model.Duck;
import com.hyh.main.model.MallardDuck;
import com.hyh.main.quack.Quack;

public class MiniDuckSimulator {

	public static void main(String[] args) {
		Duck duck = new MallardDuck();
		duck.setFlyBehavior(new FlyWithWings());
		duck.setQuackBehavior(new Quack());
		duck.display();
		duck.performFly();
		duck.performQuack();
		
		duck.setFlyBehavior(new FlyNoWay());
		duck.performFly();
		duck.performQuack();
	}

}
